package com.tiger.project.service.impl;

import com.tiger.project.domain.AssetEnclosure;
import com.tiger.project.mapper.AssetEnclosureMapper;
import com.tiger.project.service.IAssetEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author standard
 * @date 2022-09-15
 */
@Service
public class AssetEnclosureServiceImpl implements IAssetEnclosureService
{
    @Autowired
    private AssetEnclosureMapper assetEnclosureMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AssetEnclosure selectAssetEnclosureById(Long id)
    {
        return assetEnclosureMapper.selectAssetEnclosureById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param assetEnclosure 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AssetEnclosure> selectAssetEnclosureList(AssetEnclosure assetEnclosure)
    {
        return assetEnclosureMapper.selectAssetEnclosureList(assetEnclosure);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param assetEnclosure 【请填写功能名称】
     * @return 结果
     */
            @Override
    public int insertAssetEnclosure(AssetEnclosure assetEnclosure)
    {
                                                                                                                                                                                                                                                                            return assetEnclosureMapper.insertAssetEnclosure(assetEnclosure);
            }

    /**
     * 修改【请填写功能名称】
     *
     * @param assetEnclosure 【请填写功能名称】
     * @return 结果
     */
            @Override
    public int updateAssetEnclosure(AssetEnclosure assetEnclosure)
    {
                                                                                                                                                                                                                                                                        return assetEnclosureMapper.updateAssetEnclosure(assetEnclosure);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
            @Override
    public int deleteAssetEnclosureByIds(Long[] ids)
    {
                return assetEnclosureMapper.deleteAssetEnclosureByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAssetEnclosureById(Long id)
    {
                return assetEnclosureMapper.deleteAssetEnclosureById(id);
    }
    }
